# -*- coding: utf-8 -*-

'''
Created on 18.07.2011

@author: Vlasov A. I. <root@proscript.ru>
'''

from django.conf.urls.defaults import patterns, include, url


urlpatterns = patterns('okno.views',
    (r'^$', 'search'),
    (r'^search/$', 'search'),
    
    url(r'^statement/', include('okno.statement.urls')),
    
    (r'^citizen/(?P<id>\d+)/$', 'citizen'),
    
    (r'^view/(?P<id>\d+)/$', 'view'),
    (r'^print/(?P<id>\d+)/$', 'view', { '_print' : True}),
    
    #(r'^edit/(?P<id>\d+)/$', 'edit'),
    
    (r'^journal/((?P<year>\d{4})/((?P<month>\d{2})/(?P<day>\d{2}))?)?((?P<page>\d+)/)?((?P<prnt>print)/)?$', 'journal'),
    (r'^stats/((?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/)?$', 'statistics'),
    
    #(r'^new/(?P<id>\d+)/$', 'create'),
    #(r'^cats/$', 'categories'),
    #(r'^services/$', 'services'),
    #(r'^documents/$', 'documents'),
    #(r'^final/$', 'final'),
) 